package com.scalar.chiptrack.commons.bean;

import java.util.ArrayList;

/**
* User: Ganesh
 * Date: Apr 29, 2008
 * Time: 11:24:16 AM
 */
public interface IResultBean {
    /**
     * Get the search result rows
     * @return ArrayList
     */
    public ArrayList getRows();


    /**
     * Get the total page count
     * @return int
     */
    public int getNumberOfPages();


    /**
     * get the current page number
     * @return int
     */
    public int getCurrentPage();

    /**
     * Check if its the first page
     * @return boolean
     */
    public boolean getIsFirstPage();


    /**
     * Check if its the last page
     * @return boolean
     */
    public boolean getIsLastPage();


    /**
     * Get the column by which the result is sorted
     * @return String
     */
    public String getSortColumnName();


    /**
     * Check if the sorting is ascending
     * @return boolean
     */
    public boolean getIsAscendingSort();


    /**
     * Gets the first page number
     * @return int
     */
    public int getFirstPage();


    /**
     * Gets the last page number
     * @return int
     */
    public int getLastPage();


    /**
     * Gets the previous page number
     * @return int
     */
    public int getPrevPage();


    /**
     * Gets the last page number
     * @return int
     */
    public int getNextPage();
}
